package com.umeox.watch.moto.apiclient.model;

import android.os.Parcelable;

public class TaskRecordAdditionalInfoDTO implements Parcelable {

    //------ 当type=2时，additionalInfo结构 ----
    //经文Index
    public  int azkarIndex;

    //目标数量
    public int goals;

    //已完成数量
    public int completed;

    //当前完成的数量
    public int amount;

    public TaskRecordAdditionalInfoDTO() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(android.os.Parcel dest, int flags) {
        dest.writeInt(this.azkarIndex);
        dest.writeInt(this.goals);
        dest.writeInt(this.completed);
        dest.writeInt(this.amount);
    }

    protected TaskRecordAdditionalInfoDTO(android.os.Parcel in) {
        this.azkarIndex = in.readInt();
        this.goals = in.readInt();
        this.completed = in.readInt();
        this.amount = in.readInt();
    }

    public static final Creator<TaskRecordAdditionalInfoDTO> CREATOR = new Creator<TaskRecordAdditionalInfoDTO>() {
        @Override
        public TaskRecordAdditionalInfoDTO createFromParcel(android.os.Parcel source) {
            return new TaskRecordAdditionalInfoDTO(source);
        }

        @Override
        public TaskRecordAdditionalInfoDTO[] newArray(int size) {
            return new TaskRecordAdditionalInfoDTO[size];
        }
    };

    @Override
    public String toString() {
        return "TaskRecordAdditionalInfoDTO{" +
                "azkarIndex=" + azkarIndex +
                ", goals=" + goals +
                ", completed=" + completed +
                ", amount=" + amount +
                '}';
    }
}
